package com.arcbbs.config;


import com.arcbbs.utils.StringTools;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WebConfig extends  AppConfig{
    @Value("${spring.mail.username:}")
    private String sendUserName;

    public String getSendUserName() {
        return sendUserName;
    }
    @Value("admin.emails:")
    private String adminEmails;

    public String getAdminEmails() {
        return adminEmails;
    }
    @Value("${project.folder:}")
    private String projectFolder;
    public String getProjectFolder() {
        if (!StringTools.isEmpty(projectFolder) && !projectFolder.endsWith("/")) {
            projectFolder = projectFolder + "/";
        }
        return projectFolder;
    }

}
